<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/tag.jsp"%>
<div class="bjui-pageHeader">
    <form id="pagerForm"  action="system/dic/systemDicList.do" data-toggle="ajaxsearch" data-reload-navtab="true"  method="post">
        <ul class="bjui-searchBar">
            <li><label>字典项名称：</label><input type="text" name="dicName" class="form-control" size="15" /></li>
            <li><button type="submit" class="btn-default" data-icon="search">查询</button></li>
            <li><a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a></li>
        </ul> 
    </form>
</div>
<div class="bjui-pageContent">
	<div class="bjui-headBar">
		<ul>
			<li class="left">
			<a href="system/dic/toAddDicDir.do" class="btn btn-red" data-toggle="dialog" 
				data-width="400" data-height="300"  data-tabid="navtab-diclis" data-mask="true" data-reload-navtab="true" >添加</a>
			</li>
		</ul>
	</div>
	<table class="table table-bordered table-hover table-striped table-top" data-layout-h="0" data-toggle="tablefixed" 
		data-width="68%"  data-nowrap="true">
        <thead>
            <tr align="center">
				<th align="center" width="3"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th align="center" width="35">字典名称</th>
                <th align="center" width="30">字典编码</th>
            </tr>
        </thead>
        <tbody>
        	<c:choose>
			<c:when test="${not empty list}">
				<c:forEach items="${list}" var="dic">
					 <tr align="center">
						<td ><input type="checkbox" class="checkboxCtrl" name="ids" data-toggle="icheck" value="${menu.id}"></td>
		                <td align="left">
							<a href="${pageContext.request.contextPath}/system/dic/diclist.do?dicCode=${dic.dicCode}&parentValue=${dic.parentValue}" 
							data-toggle="navtab" data-tabid="navtab-dirdiclist">${dic.dicName }</a>
						</td>
		                <td align="left">${dic.dicCode}</td>
		            </tr>
				</c:forEach>
			</c:when>
			<c:otherwise>
				<tr align="center">
					<td colspan="3">
						没有相关数据
					</td>
				</tr>
			</c:otherwise>
		</c:choose>
        </tbody>
    </table>
    <%@include file="/common/paging.jsp" %>
</div>